#!/bin/bash
# Thin wrapper: open Terminal and run the real launcher there, so you can see install progress and logs.
APP_DIR="$HOME/Developer/momentum_app"
if [ ! -f "$APP_DIR/launch.sh" ]; then
    /usr/bin/osascript -e "display dialog \"Momentum 20 files not found at $APP_DIR\" buttons {\"OK\"} default button 1 with icon stop"
    exit 1
fi
/usr/bin/osascript \
  -e 'tell application "Terminal" to activate' \
  -e "tell application \"Terminal\" to do script \"bash '$APP_DIR/launch.sh'\""
